<?php
    include './base.php';
    $sname = $_POST["sname"];
    $sgender = $_POST["sgender"];
    $sage = $_POST["sage"];
    $clazzid = $_POST["clazzid"];
    $sql = "insert into student value(null,'${sname}','$sgender','$sage',$clazzid,1)";
    mysql_query($sql);
    print_r("添加成功!");
?> 